/**
 * 
 */
package skiplist_fs_tree;

import java.awt.Color;
import java.awt.Container;
import java.io.File;

import javax.swing.BoxLayout;
import javax.swing.JFrame;

/**
 * @author tobias
 * Aug 12, 2014
 * 5:00:44 PM
 */
public class Main {

	public static void main(String[] args) {
	    JFrame frame = new JFrame("FileTree");
	    frame.setForeground(Color.black);
	    frame.setBackground(Color.lightGray);
	    Container cp = frame.getContentPane();

	    if (args.length == 0) {
	      cp.add(new FileTree(new File(".")));
	    } else {
	      cp.setLayout(new BoxLayout(cp, BoxLayout.X_AXIS));
	      for (int i = 0; i < args.length; i++)
	        cp.add(new FileTree(new File(args[i])));
	    }

	    frame.pack();
	    frame.setVisible(true);
	    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

}
